package com.nuyoah.service;

import com.nuyoah.entity.Registration;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoming
 * @since 2024-03-26
 */
public interface RegistrationService extends IService<Registration> {

    boolean isRegistered(Long userId, Long activityId);

    List<Registration> listByActivityId(Long id);

    Registration getByActivityIdAndUserId(Long id, Long userId);

    List<Registration> getByActivityId(Long id);

}
